<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/common/default.jsp"%>

<!DOCTYPE html>
<html lang="en">
	<head>
	<jsp:include page="/style/header.jsp"></jsp:include>
	</head>
	
	<body>
	<div class="title_bar">
        <h3>用户信息</h3>
        <!--<a href="javascript:history.go(-1);" class="go_back"></a>  -->
    </div>
    <div class="userinfo">
        <div class="user_face"><img src="${ctx}/style/images/user_face.png"></div>
        <div class="ipt_list">
            <div class="ipt_cell">
                <span class="tag">姓名</span>${user.userName}&nbsp;
            </div>
            <div class="ipt_cell">
                <span class="tag">电子邮箱</span>${user.email}&nbsp;
            </div>
            <div class="ipt_cell">
                <span class="tag">手机号码</span>${user.phoneNum}&nbsp;
            </div>
            <div class="ipt_cell">
                <span class="tag">性别</span>
                <input type="text" id="sex" value="<c:choose><c:when test="${user.sex==1}">男</c:when><c:when test="${user.sex==2}">女</c:when></c:choose>" readonly="true" >
            </div>
            <!-- <div class="ipt_cell">
                <span class="tag">密码</span>
                <input type="password" id="password">
            </div>
            <div class="ipt_cell">
                <span class="tag">确认密码</span>
                <input type="password" id="repassword">
            </div> -->
            <!--  </div>
        <div class="ipt_list"> -->
            <div class="ipt_cell">
                <span class="tag">项目</span>${user.projectName}&nbsp;
            </div>
            <div class="ipt_cell">
                <span class="tag">工段</span>${user.segmentName}&nbsp;
            </div>
            <div class="ipt_cell">
                <span class="tag">职务</span>${user.postName}&nbsp;
            </div>
            
            <div class="ipt_cell">
                <span class="tag">状态</span>
                <input type="text" id="project" 
                    value="<c:choose><c:when test="${user.status==1}">未审批</c:when><c:when test="${user.status==2}">已审批</c:when></c:choose>"
                    readonly="true" >
            </div>
            
            <div class="ipt_cell">
                <span class="tag">角色</span>
                <input type="text" id="project" value="${user.role.roleName}" readonly="true" >   
            </div>
        </div>
    </div>
    <jsp:include page="/style/footer.jsp"></jsp:include>
    
	</body>
</html>